]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panelMenu: Destroy menu before chaining up
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 28 Jul 2020 16:52:53 +0000 (18:52 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 29 Jul 2020 19:40:54 +0000 (19:40 +0000)
This avoid some (harmless but annoying) warnings, and is closer to
the original code prior to commit fc342fe8c5 and 557b232c896.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3022

js/ui/panelMenu.js

index 44fd763ba1c07c0150de0769e8725aeb851ffad7..81d34490bd654c27ab46886455f51bb912561898 100644 (file)
@@ -183,10 +183,9 @@ var Button = GObject.registerClass({
     }
 
     _onDestroy() {
-        super._onDestroy();
-
         if (this.menu)
             this.menu.destroy();
+        super._onDestroy();
     }
 });